package model;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Daron Dima
 */
public class Card {

    public enum Rank {

        DEUCE, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, JACK, QUEEN, KING, ACE
    }

    public enum Suit {

        CLUBS, DIAMONDS, HEARTS, SPADES
    }
    private final Rank rank;
    private final Suit suit;

    public Card(Rank rank, Suit suit) {
        this.rank = rank;
        this.suit = suit;
    } 

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Card other = (Card) obj;
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 71 * hash + (this.rank != null ? this.rank.hashCode() : 0);
        hash = 71 * hash + (this.suit != null ? this.suit.hashCode() : 0);
        return hash;
    }
    
}
